package org.ws.task.model.protocol.base;

public class ResponseMessage<T> extends BaseMessage<T> {

    private static final long serialVersionUID = -2452532955283550298L;

    public static final int MESSAGE_TYPE = 0;

    public ResponseMessage(int id) {
        this.setId(id);
    }

    public ResponseMessage(int id,boolean success) {
        this.setId(id);
        this.success = success;
    }

    private boolean success;

    private String message;

    private int status;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
